﻿@using System.Web.UI.WebControls
@using Single_SignOn.Models
@using Single_SignOn.ResX
@model Single_SignOn.Areas.PDA.Models.Login

@{
    ViewBag.Title = @ResourceTools.GetResource("Resource", "titleLogin");
    Layout = "~/Areas/PDA/Views/Shared/_Layout.cshtml";
}

@using (Html.BeginForm("", "", new AjaxOptions { HttpMethod = "POST" }))
{
    @Html.ValidationSummary(true)
    <div id="content"  >
        <table style="width: 100%; text-align: center;">
            <tr>
                <td style="width: 100%; text-align: center; vertical-align: middle;">
                    <div>
                        <fieldset>
                            <legend style="width: 100%; text-align: center; vertical-align: middle;">
                                <h5>@ResourceTools.GetResource("Resource", "LoginHeader")</h5>
                            </legend>
                            <p></p>
                            <div class="center">
                                <table style="width: 100%; text-align: center;">
                                    <tr>
                                        <td style="width: 100%;" class="center">
                                            @Html.LabelFor(m => m.Username, new {@class = "label"})
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 100%;" class="center">
                                            @Html.TextBoxFor(m => m.Username, new {@class = "textbox"})
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 100%;" class="center">
                                            @Html.ValidationMessageFor( m => m.Username,"", new {@class = "error"}  )
                                        </td>
                                    </tr>
                                </table>
                                <table style="width: 100%; text-align: center;">
                                    <tr>
                                        <td style="width: 100%;" class="center">
                                            @Html.LabelFor(m => m.Password, new {@class = "label"})
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 100%;" class="center">
                                            @Html.TextBoxFor(m => m.Password, new {@class = "textbox", @type = "password"})
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 100%;" class="center">
                                            @Html.ValidationMessageFor( m => m.Password,"", new {@class = "error"}  )
                                        </td>
                                    </tr>
                                </table>
                            </div>
                            <div>
                                @Html.ValidationSummary(true,"",new {@class = "error"} )
                            </div>
                            <div class="center">
                                <table style="width: 100%; text-align: center;">
                                    <tr>
                                        <td style="width: 100%; text-align: center;">
                                            <input type="submit" class="button" name="State:Login" id="Login" value="@ResourceTools.GetResource("Resource", "Login")" title = "@ResourceTools.GetResource("Resource", "Login")" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 100%; text-align: center;">
                                            <input type="submit" class="button" name="State:ChangePassword" id="ChangePassword" value="@ResourceTools.GetResource("Resource", "ChangePassword")" title = "@ResourceTools.GetResource("Resource", "ChangePassword")" />
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </fieldset>
                    </div>
                </td>
            </tr>
        </table>
    </div>
}
